﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using BuXiaChu.OrderDishes.Model;
using BuXiaChu.OrderDishes.DAL;

namespace BuXiaChu.OrderDishes.BLL
{
    public class SysUserManager
    {
        public static List<SysUserInfoModel> GetSysUsers()
        {
            int pageCount;
            return SysUserInfoDAL.Search("", 0, 0, out pageCount);
        }

        public static bool Save(SysUserInfoModel obj)
        {
            return SysUserInfoDAL.Save(obj);
        }

        public static SysUserInfoModel GetSysUserInfoById(int systemUserId)
        {
            return SysUserInfoDAL.GetSysUserInfoById(systemUserId);
        }

        public static bool Delete(int systemUserId)
        {
            return SysUserInfoDAL.Delete(systemUserId);
        }

        public static SysUserInfoModel GetSysUserInfoBy(string loginName, string password,Guid websiteId)
        {
            return SysUserInfoDAL.GetSysUserInfoBy(loginName,password,websiteId);
        }
    }
}
